import { createApp } from 'vue'
// import './style.css'
import App from './App.vue'
import {createRouter, createWebHashHistory} from "vue-router";
import routes from "./config/router.ts";
import Vant from 'vant';
import { PullRefresh , List } from 'vant'

import pinia from './stores/index.ts'

import myAxios from "./plugins/myAxios.ts";
import 'vant/lib/index.css';

const app = createApp(App);
app.use(Vant)
myAxios.defaults.withCredentials = true;
export const router = createRouter({
    routes,
    history: createWebHashHistory(),
})

app.use(router);
app.mount('#app')

app.use(pinia)

export default {
    components: {
        PullRefresh,
        List
    }
}
